<div class="container main-content">

	<h1>Administracija kategorija</h1>
	
	<table class="admin">
	  <tr>
	  	<th class="admin narrow"></th>
	    <th class="admin narrow"></th>
	    <th class="admin">Ime kategorije</th>
	  </tr>
	
	<% @categories.each do |category| %>
	  <tr>
	    <td class="admin narrow"><%= link_to image_tag('black_icons/delete.png', :class => "button"), category, :confirm => 'Are you sure?', :method => :delete %></td>
	    <td class="admin narrow"><%= link_to image_tag('black_icons/pencil.png', :class => "button"), edit_category_path(category) %></td>
	    <td class="admin"><%= link_to category.name, category %></td>
	  </tr>
	<% end %>
	</table>
	
	<div class="admin_links">
		<%= link_to 'Dodaj kategoriju', new_category_path %>
		<%= link_to "Uredi novosti", posts_path %>
	</div>

</div>
